package com.linzp.bishe.mapper;

import com.linzp.bishe.entity.Accounts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linzp.bishe.model.AccountSearch;
import com.linzp.bishe.model.AccountUser;
import com.linzp.bishe.model.SimpleAccountUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Mapper
public interface AccountsMapper extends BaseMapper<Accounts> {


	public List<AccountUser> getAccountUser(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize,@Param("search") AccountSearch search);

	public List<SimpleAccountUser> getAllSimpleAccountUser(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize,@Param("search") AccountSearch search);

	public Integer getAllSimpleAccountUserCount(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize,@Param("search") AccountSearch search);

	public SimpleAccountUser getSimpleAccountUser(@Param("ID") Integer id);
}
